﻿using System;
using System.IO;

namespace FluentExport.CSVExport
{
    public class CSV
    {
        #region Properties

        public Stream Result { get; set; }

        #endregion

        #region Methods

        public override string ToString()
        {
            if (Result == null)
                return String.Empty;

            var streamReader = new StreamReader(Result);
            return streamReader.ReadToEnd();
        }

        #endregion

    }
}
